<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" layout:decorator="index">
<head>
<meta charset="UTF-8"/>




</head>
<body>
<div layout:fragment="content" class="content">
		<ol class="breadcrumb" th:object="${funplace}">
			<li th:text="*{funplace1}"><a href="#">系统管理</a></li>
			<li th:text="*{funplace2}"><a href="#">用户管理</a></li>
			<li th:text="*{funplace3}" class="active">用户添加</li>
		</ol>
		<form action="/device/getdevicesheartbeat" method="post">
			<div class="selectForm">
				<button type="submit" class="btn btn-success ">条件搜索</button>
				&nbsp;&nbsp;
				<button type="button" class="btn btn-danger" style="width: 82px;" oclick="clearSelect()">清空</button>&nbsp;&nbsp;
				<input type="text" class="clear1" th:value="${deviceID}"   name="deviceID" id="firstname" placeholder="请输入设备id"    />
				<input type="date" class="clear2"  name="startTime" id="firstname" placeholder="请输入开始时间" />
				<input type="date" class="clear2"  name="endTime" id="firstname" placeholder="请输入结束时间"   />
				 &nbsp;&nbsp; 共<span th:text="${List.size()}"></span>条记录
			</div>




		</form>

      <table class="table">

      <thead>
        <tr >
          
          <th  >监控对象ID</th>
           <th  >设备ID</th>
           <th  >电量</th>
            <th  >转发设备ID</th>
          <th  >上报时间</th>
          <th  >告警状态</th>
    
          <span >
          <th  >操作</th>
          </span>
        </tr>
      </thead>
      <tbody>

        <tr class="success" th:each="List : ${List}">

          <td th:text="${List.monitoringObjectId}">小虎</td>
           <td th:text="${List.deviceId}">小虎</td>
           <td th:text="${List.batteryPower}">小虎</td>
         <td th:text="${List.forwardDeviceId}">小虎</td>
         <td th:text="${#dates.format(List.dataUploadDatetime,'yyyy-MM-dd HH:mm:ss')}">小虎</td>         
         <td th:text="${List.remarkInfo}">小虎</td>
     
        
          <td>
          <button class="btn btn-primary btn-lg"  th:onclick="'javascript:mqttData('+${List.id}+',2)' ">对应Mqtt日志</button>
          
             <!--   <a   th:href="@{/user/deleteUser(id=${List.deviceId})}"> 删除</a>-->
             <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			    <div class="modal-dialog">
			        <div class="modal-content">
			            <div class="modal-header">
			                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
			                <h4 class="modal-title" id="myModalLabel">当前数据日志</h4>
			            </div>
			            <div class="modal-body" ><pre id="result"></pre></div>
			            <div class="modal-footer">
			                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>			             
			            </div>
			        </div><!-- /.modal-content -->
			    </div><!-- /.modal -->
</div>

          </td>
 		
        </tr>


      </tbody>



    </table>



</div>



</body>

</html>
